spinbutton: Fix gesture state
authorTimm Bäder <mail@baedert.org>
Sun, 25 Jun 2017 16:27:10 +0000 (18:27 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000 (21:27 -0400)
We claimed the gesture previously to keep it from propagating to the
underlying entry, but now that the entry is in a box with the two
buttons, we can do this properly and restore the previous long-press
behavior.

gtk/gtkspinbutton.c

index 26dac7ea45e8e826d4f3a067ff91872903ecb882..9034ecabc2c0fa0231c3a2a8064959abc5cecb9c 100644 (file)
@@ -788,8 +788,6 @@ button_pressed_cb (GtkGestureMultiPress *gesture,
 
   gtk_widget_grab_focus (GTK_WIDGET (spin_button));
 
-  gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
-
   if (gtk_editable_get_editable (GTK_EDITABLE (priv->entry)))
     {
       int button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));